@mixin line-hight($number) {
    height: $number;
    line-height: $number;
}
@mixin bg($bg) {
    background: url("../../../../#{$bg}") 100% 100% no-repeat;
    background-size: cover;
}
@mixin home_lg() {
    .news {
        width: 100%;
        .table {
            font-size: 36px;
            text-align: center;
            color: #fff;

            // @include line-hight(442px);
            @include bg("assets/images/news_table.png");
        }
        
        .activeNav {
            display: block;
            height: 65px;
            line-height: 65px;
            font-size: 18px;
            color: #333;
            text-align: center;
            span {
                display: inline-block;
                height: 64px;
                line-height: 65px;
                color: #a9171f;
                border-bottom: 1px solid #a9171f;
            }
        }
        // 专业新闻
        .professional_news_list {
            max-width: 1200px;
            margin: 0 auto;
            margin-top: 13px;
            .professional_news_item {
                // width: 100%;
                display: flex;
                justify-content: flex-start;
                box-sizing: border-box;
                padding: 22px 0;
                border-bottom: 0.01px solid #ededed;
                .img {
                    width: 260px;
                    height: 173px;
                }
                .news_abstract {
                    // width: 940px;
                    flex: 1;
                    box-sizing: border-box;
                    padding-left: 29px;
                    h3 {
                        font-size: 20px;
                        color: #333;
                        width: 100%;
                        @include line-hight(40px);
                        display: -webkit-box;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 1;
                        overflow: hidden;
                    }
                    p {
                        height: 60px;
                        font-size: 16px;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        display: -webkit-box;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 2;
                        overflow: hidden;
                        line-height: 30px;
                    }
                    .news_time {
                        text-align: right;
                        font-size: 14px;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        color: #aaa;
                        // margin-top: 0.18px;
                        img {
                            width: 16px;
                            height: 16px;
                        }
                    }
                    .details_botton {
                        display: block;
                        width: 89px;
                        // height: 0.34px;
                        @include line-hight(34px);
                        border: 0.01px solid #aa171f;
                        border-radius: 4px;
                        font-size: 16px;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        color: rgba(170, 23, 31, 1);
                        text-align: center;
                    }
                }
            }
        }
        // 专业新闻详情页
        .el-pagination {
            text-align: center;
            height: 70px;
            margin-top: 50px;
        }
        .details {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            overflow: hidden;
            h1 {
                // @include line-hight(107px);
                font-weight: bold;
            margin-top: 110px;
            padding-top: 20px;
            padding-bottom: 36px;
                font-size: 20px;
                font-family: Microsoft YaHei;
                // font-weight: 400;
                color: #333;
                text-align: center;
                box-sizing: border-box;
                padding-right: 100px;
            }
            .return {
                cursor: pointer;
                @include line-hight(110px);
                top: 0px;
                position: absolute;
                right: 0;
                // top: 40px;
                font-size: 16px;
                font-family: Microsoft YaHei;
                font-weight: 400;
                color: #666;
                img {
                    width: 7px;
                    height: 13px;
                }
            }
            .content {
                width: 100%;
                font-size: 16px;
                padding-bottom: 30px;
            }
        }
        //问题解答
        .problem {
            max-width: 1200px;
            margin: 0 auto;
            .box {
                display: flex;
                justify-content: flex-start;
            }

            .cascader {
                display: none;
            }
            .problem_list {
                // float: left;
                // width: 953px;
                flex: 1;
                // margin-right: 28px;
                .problem_item {
                    font-family: Microsoft YaHei;
                    font-weight: 400;
                    box-sizing: border-box;
                    padding: 40px 30px;
                    border-bottom: 0.01px solid #e4e4e4;

                    h5 {
                        color: #aa171f;
                        font-size: 16px;
                    }
                    p {
                        font-size: 16px;
                        color: #666;
                        // margin-top: 0.4px;
                        line-height: 30px;
                    }
                }
            }
            .folding {
                width: 213px;
                // float: left;
                font-size: 18px;
                text-align: center;
                .folding_item {
                    cursor: pointer;
                    @include line-hight(70px);
                    color: #333;
                    background: #f8f8f8;
                    margin-top: 1px;
                }
                .folding_active {
                    color: #aa171f;
                    border-top: 4px solid #aa171f;
                    background: rgba($color: #aa171f, $alpha: 0.16);
                }
            }
        }
    }
}
@mixin home_sm() {
    .news {
        width: 100%;
        .table {
            font-size: 0.36rem;
            text-align: center;
            color: #fff;
            // @include line-hight(3.4rem);
            @include bg("assets/images/news_table.png");
            p {
                @include line-hight(3.4rem);
            }
        }
        // 专业新闻
        .professional_news_list {
            margin: 0 auto;
            box-sizing: border-box;
            padding: 0 0.3rem;
            .professional_news_item {
                width: 100%;
                box-sizing: border-box;
                padding: 0.3rem 0;
                display: flex;
                justify-content: space-between;
                border-bottom: 0.01rem solid #ededed;
                .img {
                    width: 2.60rem;
                    height: 1.73rem;
                }
                .news_abstract {
                    flex: 1;
                    max-width: 4.27rem;
                    box-sizing: border-box;
                    padding-left: 0.2rem;
                    h3 {
                        font-size: 0.28rem;
                        color: #333;
                        width: 100%;
                        @include line-hight(0.4rem);
                        overflow: hidden;
                        text-overflow: ellipsis;
                        white-space: nowrap;
                    }
                    p {
                        height: 0.6rem;
                        font-size: 0.24rem;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        display: -webkit-box;
                        -webkit-box-orient: vertical;
                        -webkit-line-clamp: 2;
                        overflow: hidden;
                    }
                    .news_time {
                        text-align: right;
                        font-size: 0.22rem;
                        font-family: Microsoft YaHei;
                        font-weight: 400;
                        color: #aaa;
                        margin-top: 0.18rem;
                        img {
                            width: 0.16rem;
                            height: 0.16rem;
                        }
                    }
                    .details_botton {
                        display: none;
                    }
                }
            }
        }
        // 专业新闻详情页
        .el-pagination {
            text-align: center;
            height: 0.7rem;
            margin-top: 0.5rem;
        }
        .details {
            width: 100%;
            margin: 0 auto;
            font-size: 0;
            box-sizing: border-box;
            padding: 0 0.3rem;
            padding-bottom: 0.6rem;
            h1 {
                font-size: 0.26rem;
                font-family: Microsoft YaHei;
                font-weight: 400;
                color: #333;
                text-align: center;
                box-sizing: border-box;
                padding-top: 0.45rem;
                padding-bottom: 0.36rem;
                font-weight: bold;
            }
            .return {
                width: 100%;
                @include line-hight(1.1rem);
                cursor: pointer;
                min-width: 1rem;
                display: inline-block;
                text-align: right;
                font-size: 0.16rem;
                font-family: Microsoft YaHei;
                font-weight: 400;
                color: #666;
                img {
                    width: 0.07rem;
                    height: 0.13rem;
                }
            }
            .content {
                width: 100%;
                font-size: 0.16rem;
                padding-bottom: .3rem;
            }
        }
        //问题解答
        .problem {
            width: 100%;
            box-sizing: border-box;
            padding: 0 0.3rem;
            margin: 0 auto;
            .cascader {
                display: flex;
                justify-content: flex-end;
                align-items: center;
                .el-cascader {
                    width: 1.5rem;
                }
                i {
                    width: 0.35rem;
                    height: 0.38rem;
                    @include bg("assets/images/mobile_selected.png");
                }
            }
            .problem_list {
                margin-right: 0.28rem;
                .problem_item {
                    font-family: Microsoft YaHei;
                    font-weight: 400;
                    box-sizing: border-box;
                    padding: 0.2rem 0;
                    border-bottom: 0.01rem solid #e4e4e4;

                    h5 {
                        font-size: 0.24rem;
                        color: #aa171f;
                    }
                    p {
                        font-size: 0.24rem;
                        color: #666;
                        margin-top: 0.2rem;
                    }
                }
            }
            .folding {
                display: none;
            }
        }
    }
}
//* 设备宽度大于 320px 小于 640px */
@media only screen and (min-width: 320px) and (max-width: 640px) {
    @include home_sm;
}
@media only screen and (min-width: 641px) and (max-width: 1199px) {
    @include home_lg;
    .news .professional_news_list .professional_news_item{
        margin: 0 30px;
    }
    .news .details {
        padding: 0 30px;
        box-sizing: border-box;
        .return {
            position: relative;
            top: 0;
            @include line-hight(50px);
            display: flex;
            justify-content: flex-end;
            align-items: center;
            img {
                margin-left: 10px;
            }
        }
        h1 {
            padding: 0;
            line-height: 30px;
            height: auto;
            text-align: center;
        }
    }
}
@media screen and (min-width: 1200px) {
    @include home_lg;
}
